<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    String reqString = request.getParameter("content");
%>

<!DOCTYPE html>
<html>
    <head>
        <link type="text/css" href="css/main.css" rel="stylesheet">
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/cart_actions.js"></script>
        <script type="text/javascript" src="js/helper.js"></script>
        <%
            if ("order".equals(reqString)
                        || "cart".equals(reqString)
                        || "condition".equals(reqString)
                        || "registration".equals(reqString)
                        || "signin".equals(reqString)) {
                
        %>
        <script type="text/javascript" src="js/<%= reqString%>.js"></script>
        <%
            }
        %>
        <%
            //TODO Session interaction
        %>
        <title>Main Page</title>
    </head>
    <body>
        <div id="blue-line"></div>
        <div id="container">
            <jsp:include page="header.jsp" flush="true" />
            <div id="content">
                <%
                    if (reqString != null) {
                %>
                <jsp:include page="<%= reqString + ".jsp"%>" flush="true"/>
                <%  } else {%>
                <jsp:include page="indexcontent.jsp" flush="true"/>
                <%  }%>
            </div>
        </div>
        <jsp:include page="footer.jsp" flush="true" />
    </body>
</html>
